package edu.spec.rxz.week08.class2;

public class Bear extends Animal implements IAnimal,IHibernate {
    private String hibernation;  //冬眠

    public Bear(){
    }

    public Bear(String name, String food, String area){
        super(name, food, area);

    }
    @Override
    public String findFood(){
        return super.getName()+"找"+super.getFood();
    }

    @Override
    String wholelife() {
        return born()+findFood()+eat()+old()+sick()+die();
    }


    @Override
    public String born() {
        return super.getName()+"出生在"+super.getArea();
    }

    @Override
    public String old() {
        return super.getName()+"年纪大了";
    }

    @Override
    public String sick() {
        return super.getName()+"生病了";
    }

    @Override
    public String die() {
        return super.getName()+"死了";
    }

    @Override
    public String hibernate() {
        return super.getName()+"冬眠3个月";
    }


}
